package net.begincode.biz;

import net.begincode.bean.BlogClassInfo;
import net.begincode.bean.BlogDetaiInfo;
import net.begincode.blog.bean.param.BlogClassQueryParam;
import net.begincode.blog.bean.param.BlogQueryParam;
import net.begincode.blog.bean.vo.BlogBaseInfo;
import net.begincode.blog.bean.vo.CheckBlog;
import net.begincode.blog.entity.Blog;
import net.begincode.page.PageResponse;

import java.util.List;

public interface BlogBiz {

    int setBlogKeyWords(Long blogId,List<Long> keyWordIds);

    int delBlogKeyWords(Long blogId,List<Long> keyWordIds);

    int setBlogHomeType(Long blogId,Long homeTypeId);

    int updateBlogById(Blog blog);

    PageResponse<CheckBlog> queryCheckBlog(BlogQueryParam queryParam);

    BlogDetaiInfo queryBlogById(Long blogId, String blogFlag);

    PageResponse<BlogClassInfo> queryClassByQuery(BlogClassQueryParam queryParam);

    List<BlogBaseInfo> queryRecommend(Long homeTypeId, int limit);

    List<BlogBaseInfo> selectTopN(String flag, int limit);
}
